#include #include #include using namespace std; int die(){ return rand()%6+1; } void main(){ int dice[13]={0}; srand(time(0)); int i; for(i=0; i<36000000; i++) dice[die() + die()]++; for(i=2; i<13; i++) cout << i << " - " << dice[i] << endl; }